package cn.ithers.blog.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import java.io.Serializable;
import java.util.Date;


@Data
@Entity
@Table ( name ="tb_settings" )
public class Setting implements Serializable {


	@ApiModelProperty(value = "网址设置ID")
  	@Id
	private String id;

	@ApiModelProperty(value = "网址设置项")
  	@Column(name = "`key`" )
	private String key;

	@ApiModelProperty(value = "网址设置的值")
  	@Column(name = "`value`" )
	private String value;

	@ApiModelProperty(value = "创建时间")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  	@Column(name = "create_time" )
	private Date createTime;

	@ApiModelProperty(value = "更新时间")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  	@Column(name = "update_time" )
	private Date updateTime;



}
